<script setup lang="ts">
const handleSearch = () => {
  uni.navigateTo({ url: '/basePackage/pages/searchPage/SearchPage' })
}
</script>

<template>
  <view class="search" @click="handleSearch">
    <view class="search__input" />
    <view class="search__btn">搜索</view>
  </view>
</template>

<style lang="scss" scoped>
@include b(search) {
  margin: 0 20rpx;
  box-sizing: border-box;
  position: relative;
  border: 1px solid #f12f22;
  border-radius: 40rpx;
  height: 72rpx;
  z-index: 10;
  @include flex(space-between);
  @include e(input) {
    height: 64rpx;
    width: 70%;
    text-indent: 40rpx;
  }
  @include e(btn) {
    width: 128rpx;
    height: 56rpx;
    border-radius: 40rpx;
    line-height: 56rpx;
    text-align: center;
    color: #fff;
    background: linear-gradient(90deg, #ff5674, #f12f22);
    font-size: 24rpx;
    margin-right: 8rpx;
  }
}
</style>
